package com.hjb.service.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hjb.service.domain.siteuser.SiteUserProfit;
import com.hjb.service.domain.siteuser.SiteUserProfitExample;
import com.hjb.service.mybatis.BaseMapper;

public interface SiteUserProfitMapper extends BaseMapper<SiteUserProfit> {
    int countByExample(SiteUserProfitExample example);

    int deleteByExample(SiteUserProfitExample example);

    List<SiteUserProfit> selectByExample(SiteUserProfitExample example);

    int updateByExampleSelective(@Param("record") SiteUserProfit record, @Param("example") SiteUserProfitExample example);

    int updateByExample(@Param("record") SiteUserProfit record, @Param("example") SiteUserProfitExample example);
    
    BigDecimal queryProfitAmount(Map<String,Object> prams);
    
    List<Map<String, Object>> queryCurrentProfitByUserId(Map<String,Object> prams);
}